package fgame.resource.loader
{
	import com.riaidea.utils.zip.ZipArchive;
	
	import ricky.Interface.ILoader;
	import ricky.Interface.ILoadComplete;
	import ricky.loader.Request;
	
	public class MyZipArchive extends ZipArchive implements ILoader
	{
		public function MyZipArchive(name:String=null, encoding:String="utf-8")
		{
			super(name, encoding);
		}
		
		public function get tag():*
		{
			return _tag;
		}
		public function set tag(value:*):void
		{
			_tag=value;
		}
		
		public function get req():Request
		{
			return _req;
		}
		
		public function set req(value:Request):void
		{
			_req=value;
		}
		
		public function get loadComplete():ILoadComplete
		{
			return _loadComplete;
		}
		
		public function set loadComplete(value:ILoadComplete):void
		{
			_loadComplete=value;
		}
		
		public function get getData():*
		{
			return this;
		}

		/**
		 * 开始加载
		 */
		public	function beginLoad():void
		{
			this.load(req.url);
		}
		
		//
		private var _tag:*;
		private var _req:*;
		private var _loadComplete:ILoadComplete;
	}
}